package com.hzx.demo.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.hzx.demo.R;
import com.hzx.demo.util.Entry;
import com.hzx.demo.util.HZXLog;

import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

/**
 * Created by ldkxingzhe on 2016/5/16.
 */
@Entry(desc = "一个简单的测试文件", createTime = "2016-05-16 15:22")
@EActivity(R.layout.activity_test)
public class AnnotationActivity extends AppCompatActivity{
    private static final String TAG = "AnnotationActivity";

    @ViewById(R.id.btn_show_toast)
    Button mButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Click(R.id.btn_show_toast)
    public void onButtonClick(View view){
        HZXLog.v(TAG, "onButtonClick");
        Toast.makeText(AnnotationActivity.this, "button 被点击了", Toast.LENGTH_SHORT).show();
    }
}
